package c.e.a.b.e.c;

import java.util.List;

/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public final class p5 extends o5 {
    public p5(n5 n5Var) {
        super(null);
    }

    public static <E> b5<E> c(Object obj, long j) {
        return (b5) l7.r(obj, j);
    }

    public final <E> void a(Object obj, Object obj2, long j) {
        List c = c(obj, j);
        obj2 = c(obj2, j);
        int size = c.size();
        int size2 = obj2.size();
        if (size > 0 && size2 > 0) {
            if (!c.q()) {
                c = c.a(size2 + size);
            }
            c.addAll(obj2);
        }
        if (size > 0) {
            obj2 = c;
        }
        l7.f(obj, j, obj2);
    }

    public final void b(Object obj, long j) {
        c(obj, j).w();
    }
}
